# -*- coding:utf-8 -*-
#! python3
from facecat import *

gPaint = FCPaint() #创建绘图对象
#消息循环
def WndProc(hwnd,msg,wParam,lParam):
	return WndProcDefault(gPaint,hwnd,msg,wParam,lParam)
#初始化窗体
#setWindowRect(FCPoint(100,100), FCSize(200,200))
#setMaxWindow()
createMainWindow(gPaint, "facecat-py", WndProc)
current_file_path = os.path.abspath(__file__)
current_file_dir = os.path.dirname(current_file_path)
file0 = open(current_file_dir + "\\xml\\blankexample.xml", encoding="UTF-8")
xml = file0.read()
file0.close()
renderFaceCat(gPaint, xml)
showWindow(gPaint)